package cn.rxls.community.dto.maintenance;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 维修新增
 */
@Data
public class MaintenanceUpdateDTO {
    //维修编号、id
    @Min(value = 1,message = "非法维修编号")
    private Long maintenanceId;
    //电话号码
    private String maintenancePhone;
    //上门时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date maintenanceTime;
    //故障图片
    private String maintenanceImg;
    //故障描述
    private String maintenanceMsg;
    //备注
    private String remark;
}
